<template>
  <!-- (areement.title.match(/[\u4e00-\u9fa5]/g)).join('') 只保留汉字 -->
  <NewCard :title="areement&&areement.title ?(areement.title.match(/[\u4e00-\u9fa5]/g)).join(''):'协议'">
      <div class="content" v-html="areement.content" v-if="areement">
      </div>
  </NewCard>
</template>

<script>
import NewCard from "@/wss/components/newCard.vue";
export default {
    name:'Agreement',
    components:{NewCard},
    data(){
      return{
        areement:{},//当前协议信息
      }
    },
    mounted(){
      this.$bus.$on('busAreement',(areement)=>{
        this.areement = areement
      })
    },
    methods:{

    },
}
</script>

<style scoped>
::v-deep .el-card__body>div{
  height: 92%!important;
  overflow-y: auto;
}
.content{
  font-size: 14px;
  line-height: 26px;
}
</style>